package io.rocketman.transport.channel.handler;

import io.rocketman.transport.channel.Channel;

/**
 * @author He Peng
 * @create 2018-05-26 21:01
 * @update 2018-05-26 21:01
 * @updatedesc : 更新说明
 * @see
 */
public class SerializeChannelHandler extends AbstractChannelHandler {

    private ChannelHandler channelHandler;

    public SerializeChannelHandler(ChannelHandler channelHandler) {
        this.channelHandler = channelHandler;
    }

    @Override
    public void send(Channel channel, Object message) {
        // TODO
    }

    @Override
    public void received(Channel channel, Object message) {
        this.channelHandler.received(channel , message);
    }
}
